package com.example.policymode4;

import com.example.policymode4.factory.Payment;
import com.example.policymode4.factory.PaymentFactory;

public class Test {
    public static void main(String[] args) {
        String payType = "weixin";
        Payment payment = PaymentFactory.getPayment(payType);
        String pay = payment.pay("");
        System.out.println(pay);
    }
}